home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
vsa256.zip
/
VSA_FONT.H
< prev
next >
Wrap
Text File
|
1996-02-17
|
20KB
|
912 lines
/*............................... VSA_FONT.H .............. 2-17-96 ........*/
/* This is the font file for the VSA256 Graphics Library. The basic */
/* font size is set by the XCharBase and YCharBase values defined at the */
/* top of this file. This include file gives you the ability to fully */
/* customize your fonts! Feel free to edit the font vertex lists to be as */
/* personalized as possible. Read on to see how it works. */
/* */
/* ASC[M][N] is a 2 dimensional array. The M index selects one of 96 */
/* possible characters and corresponds to the printable ASCII character */
/* codes from 32 to 127. (M = 0 selects ASCII character code 32 ... a space,*/
/* M = 95 selects ASCII character code 127 ... DEL) */
/* For any given value of M, the N index steps through the vertex list */
/* for that character. Each vertex takes up 3 locations. The first of */
/* the 3 values is the blank code. A blank code of 0 means start a new line */
/* segment (equivalent to "move_to"). A blank code of 1 means continue */
/* drawing (equivalent to "line_to"). A blank code of 255 means END of */
/* vertex list. You MUST end each vertex list this way! */
/* The next two values are x and y coordinates relative to the top left */
/* corner of the character cell. The x and y values should never be more */
/* than XCharBase-1 and YCharBase-1 respectively. When the blank code is */
/* 255, the x and y values are ignored. A maximum of 23 verticies plus an */
/* END vertex are allowed per character. Overrunning this limit will */
/* probably cause your PC to go woopie. */
/* */
/* Starting with version 4.0 of this library, the user can change the */
/* number of possible characters in the font array. If you want to */
/* increase the total number of characters, just change the '96' dimension */
/* below in the 'ASC[96][72]' declaration to the new desired number of */
/* characters. Then make sure to fill out the remainder of the array. */
/* */
/* VERSION 4.0 */
/* */
/* Copyright Spyro Gumas, 1992 - 1996. All Rights Reserved. */
/*..........................................................................*/
/*..... 12-14-94 Added 'far' to declarations. .....*/
/*..... 2-17-96 Now user can change '96' dimension of ASC array. .....*/
unsigned far XCharBase = 8, far YCharBase = 16;
unsigned char far ASC[96][72]={
{ /* ASCII 32 " "*/
255, 0, 0 },
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